home *** CD-ROM | disk | FTP | other *** search
/ TeX 1995 July / TeX CD-ROM July 1995 (Disc 1)(Walnut Creek)(1995).ISO / tex-k / tex-k-archive.past / tex-k-archive.gz / tex-k-archive / 000149_Enrique_Ibarra…GA.EDRC.CMU.EDU_Mon Jan 3 09:43:22 1994.msg < prev    next >
Internet Message Format  |  1994-10-11  |  6KB

  1. Received: from VOLGA.EDRC.CMU.EDU by cs.umb.edu with SMTP id AA16165
  2.   (5.65c/IDA-1.4.4 for <tex-k@CS.UMB.EDU>); Mon, 3 Jan 1994 14:43:34 -0500
  3. Message-Id: <199401031943.AA16165@cs.umb.edu>
  4. Received: from VOLGA.EDRC.CMU.EDU by VOLGA.EDRC.CMU.EDU id aa00418;
  5.           3 Jan 94 14:43:26 EST
  6. To: tex-k@CS.UMB.EDU
  7. Cc: kb@CS.UMB.EDU
  8. Subject: Problems compiling dvips
  9. Date: Mon, 03 Jan 94 14:43:22 EST
  10. From: Enrique_Ibarra-Anaya@VOLGA.EDRC.CMU.EDU
  11.  
  12. Hello,
  13.  
  14. I am trying to compile dvips in an HP 9000/890 with HP-UX 9.00 using
  15. gcc.2.4.5. I am using the source files contained in the Unix TeX 3.141
  16. tape. This is the first time that I install TeX and so far I have been
  17. successful installing tex, latex, slitex, ... etc. Now I am trying to
  18. compile dvips. After configuring the directories
  19.  
  20.     "./DVIware/laser-setters/dvi-to-ps/dvipsk-5.521a" 
  21.     "./DVIware/laser-setters/dvi-to-ps/dvipsk-5.521a/kpathsea" 
  22.     "./DVIware/laser-setters/dvi-to-ps/dvipsk-5.521a/dvipsk" 
  23.  
  24. I type "make" at directory dvipsk-5.521a. I was able to successfully
  25. build "kpathsea.a". The makefile then changes directory to dvipsk; all
  26. the files compiled correctly, however, when it tries to link all the
  27. *.o files, I get a linker error saying that function "assert" is not
  28. found anywhere. The following is the output of the Makefile:
  29.  
  30. BEGIN MAKEFILE OUTPUT **************************************************
  31.  
  32. cd ~/productos/Unix-TeX-3.141/DVIware/laser-setters/dvi-to-ps/dvipsk-5.521a/
  33. make -k 
  34. cd kpathsea; make  -k SHELL='/bin/sh' prefix=/productos/TeX exec_prefix=/productos/TeX bindir=/productos/TeX/bin libdir=/productos/TeX/lib datadir=/productos/TeX/lib infodir=/productos/TeX/info includedir=/productos/TeX/include manext=1 mandir=/productos/TeX/man/man1 texprefix=/productos/TeX/lib/tex     mfprefix=/productos/TeX/lib/mf texinputdir=/productos/TeX/lib/tex/macros mfinputdir=/productos/TeX/lib/mf/macros texpooldir=/productos/TeX/lib/tex   mfpooldir=/productos/TeX/lib/mf texfontdir=/productos/TeX/lib/tex/fonts psfontdir=/productos/TeX/lib/tex/fonts/adobe dvips_prefix=/productos/TeX/lib/tex/dvips configdir=/productos/TeX/lib/tex/dvips headerdir=/productos/TeX/lib/tex/dvips
  35. make[1]: Entering directory `/productos/Unix-TeX-3.141/DVIware/laser-setters/dvi-to-ps/dvipsk-5.521a/kpathsea'
  36. cd .
  37. gcc  -I. -I. -I..     -c putenv.c
  38. rm -f kpathsea.a
  39. ar cq kpathsea.a absolute.o concat.o concat3.o concatn.o debug.o default.o dir.o elt-dirs.o expand.o extend-fname.o file-p.o find-suffix.o fn.o fontmap.o init-path.o itoa.o line.o make-suffix.o path-elt.o pathsearch.o putenv.o readable.o rm-suffix.o str-list.o str-llist.o tex-font.o tex-glyph.o tex-make.o tilde.o truncate.o uppercasify.o variable.o version.o xcalloc.o xfopen.o xmalloc.o xopendir.o xputenv.o xrealloc.o xstat.o xstrdup.o
  40. ranlib kpathsea.a
  41. ranlib: ar already did it for you, see ar(1).
  42. make[1]: Leaving directory `/productos/Unix-TeX-3.141/DVIware/laser-setters/dvi-to-ps/dvipsk-5.521a/kpathsea'
  43. for d in dvipsk web2c xdvik; do \
  44.   if test -d $d; then (cd $d; make  -k SHELL='/bin/sh' prefix=/productos/TeX exec_prefix=/productos/TeX bindir=/productos/TeX/bin libdir=/productos/TeX/lib datadir=/productos/TeX/lib infodir=/productos/TeX/info includedir=/productos/TeX/include manext=1 mandir=/productos/TeX/man/man1 texprefix=/productos/TeX/lib/tex     mfprefix=/productos/TeX/lib/mf texinputdir=/productos/TeX/lib/tex/macros mfinputdir=/productos/TeX/lib/mf/macros texpooldir=/productos/TeX/lib/tex   mfpooldir=/productos/TeX/lib/mf texfontdir=/productos/TeX/lib/tex/fonts psfontdir=/productos/TeX/lib/tex/fonts/adobe dvips_prefix=/productos/TeX/lib/tex/dvips configdir=/productos/TeX/lib/tex/dvips headerdir=/productos/TeX/lib/tex/dvips all); \
  45.   else true; fi; done
  46. make[1]: Entering directory `/productos/Unix-TeX-3.141/DVIware/laser-setters/dvi-to-ps/dvipsk-5.521a/dvipsk'
  47. cd .
  48. gcc    -o dvips dospecial.o dviinput.o emspecial.o fontdef.o loadfont.o dvips.o tfmload.o download.o prescan.o scanpage.o skippage.o output.o scalewidth.o dosection.o dopage.o resident.o search.o unpack.o drawPS.o header.o makefont.o repack.o virtualfont.o dpicheck.o finclude.o pprescan.o papersiz.o color.o bbox.o ../kpathsea/kpathsea.a   -lm 
  49. /bin/ld: Unsatisfied symbols:
  50.    assert (code)
  51. collect: ld returned 1 exit status
  52. make[1]: *** [dvips] Error 1
  53. make[1]: Target `all' not remade because of errors.
  54. make[1]: Leaving directory `/productos/Unix-TeX-3.141/DVIware/laser-setters/dvi-to-ps/dvipsk-5.521a/dvipsk'
  55.  
  56. Compilation finished at Mon Dec 27 19:19:43
  57.  
  58. END OF MAKEFILE OUTPUT **************************************************
  59.  
  60. I do not understand why the linker cannot find the library function
  61. assert. I compiled and run the following simple program successfully
  62. (gtest.c): 
  63.  
  64.     #include <assert.h>
  65.     #include <stdio.h>
  66.  
  67.     int main ()
  68.     {
  69.       int var = 0;
  70.  
  71.       assert (var);
  72.     }    
  73.  
  74. I also tried compiling it like it follows and I also was successful
  75. compiling and running the program:
  76.  
  77.     gcc -o gtest gtest.c kpathsea.a
  78.  
  79. There are no calls to "assert" in any of the source files found at
  80. directory dvipsk-5.521a/dvipsk. The only source files that contain
  81. calls to assert are in directory dvipsk-5.52a/kpathsea and are files:
  82.  
  83.     default.c (line 35)
  84.     elt-dirs.c (line 123)
  85.     fn.c (lines 61 and 115)
  86.     path-elt.c (line 56)
  87.     tilde.c (line 40)
  88.     xputenv.c (line 40)
  89.  
  90. I have no idea why /bin/ld cannot find function assert when compiling
  91. dvips. I have tried everything I could imagine. Could you please help
  92. me ? I badly need to complete the installation of TeX.
  93.  
  94. Thanks a lot in advance,
  95.  
  96. Enrique
  97.